import request from '@/utils/request'


export default {
  //医院设置列表
  getHospSetList(pageNum, pageSize, searchObj) {
    return request({
      url: `/admin/hosp/hospitalSet/findPageHospSet/${pageNum}/${pageSize}`,
      method: 'post',
      data: searchObj // 使用json
    })
  },
  //删除医院设置
  deleteHospSet(id) {
    return request({
      url: `/admin/hosp/hospitalSet/${id}`,
      method: 'delete',

    })
  },
  //批量删除
  batchRemoveHospSet(idList) {
    return request({
      url: `/admin/hosp/hospitalSet/batchRemoveHospitalSet`,
      method: 'delete',
      data: idList
    })

  },
  //锁定或解锁
  lockHospSet(id, status) {
    return request({
      url: `/admin/hosp/hospitalSet/lockHospitalSet/${id}/${status}`,
      method: 'put',

    })
  },
  //新增医院设置
  saveHospitalSet(hospitalSet) {
    return request({
      url: `/admin/hosp/hospitalSet/saveHospitalSet`,
      method: 'post',
      data: hospitalSet

    })

  },
  //修改医院设置
  updateHospitalSet(hospitalSet) {
    return request({
      url: `/admin/hosp/hospitalSet/updateHospitalSetById`,
      method: 'post',
      data: hospitalSet

    })
  },
  //获知指定医院设置
  getHospital(id) {
    return request({
      url: `/admin/hosp/hospitalSet/getHospitalSet/${id}`,
      method: 'get'
    })
  },
 
}
